package com.aaron.gesturehelper;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootCompleteReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		MyConfiguration config = MyConfiguration.getInstance(context);
		boolean enabled = config.getBoolean(MyConfiguration.ENABLE, false);
		if(enabled) {
			context.startService(new Intent(context,MyService.class));
		}
	}
}
